﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapCenterSystem.DataInfo
{
    public class MyLocation:IComparable<MyLocation>
    {
        private int id;
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private string number;

        public string Number
        {
            get { return number; }
            set { number = value; }
        }

        private string area;

        public string Area
        {
            get { return area; }
            set { area = value; }
        }

        private double xLocation;
        public double XLocation
        {
            get { return xLocation; }
            set { xLocation = value; }
        }

        private double yLocation;
        public double YLocation
        {
            get { return yLocation; }
            set { yLocation = value; }
        }

        double ilenght;

        public double Ilenght
        {
            get { return ilenght; }
            set { ilenght = value; }
        }
        #region IComparer<MyLocation>
        public int CompareTo(MyLocation x)
        {
            return this.Ilenght.CompareTo(x.Ilenght);
        }
        #endregion
    }
}
